/*
 * @Author: 大D
 * @email: 857216393@qq.com
 * @Date: 2024-01-28 15:09:27
 * @Description:dev开发环境配置
 */
import { defineConfig } from 'vite';

export default defineConfig({
  mode: 'development',
  server: {
    port: 8081,
    proxy: {
      '/api/musicapi': {
        target: 'http://mrzym.top:3000',
        // target: 'https://service-luyytvqc-1322997722.gz.tencentapigw.com',
        rewrite: path => path.replace(/^\/api\/musicapi/, ''),
        changeOrigin: true
      },
      '/api': {
        target: 'http://localhost:3000',
        rewrite: path => path.replace(/^\/api/, ''),

        changeOrigin: true
      }
    }
  }
});
